<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/5/13
 * Time: 10:51
 */

namespace app\admin\validate;




use think\Validate;

class Auth extends Validate
{
        protected $rule = [
            'name'  =>'require',
            'title'  =>'require|chs',
            '__token__' => 'token'
        ];

        protected $message = [
            'name.require' => '规则必填',
            'title.require' => '规则名称必填',
            'title.chs' => '规则名称只能为中文',
            '__token__.token'    => '你已经提交过了',
        ];

        protected $scene = [
            'add'=>['name','title','__token__']
        ];



}